package cn.itcast.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

/***
 * 配置文件国际化
 */
public class Demo1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
//		ResourceBundle bundle = ResourceBundle.getBundle("cn.itcast.resource.myproperties",Locale.US);
		ResourceBundle bundle = ResourceBundle.getBundle("cn.itcast.resource.myproperties",Locale.CHINA);
		
		String username = bundle.getString("username");
		String password= bundle.getString("password");
		
		System.out.println(username);
		System.out.println(password);
	}

}
